package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.math.BigDecimal;

/**
 * Created by itchenqi on 2018/1/25 0025.
 * description：物业缴费记录的列表json工具类
 */

public class PaymentNotesBean implements Parcelable {

    /**
     * 支付宝交易号
     */
    private String dealId;
    /**
     * 缴费时间
     */
    private String payTime;

    /**
     * 支付的方式缴费方式1支付宝2微信3线下
     */
    private String payType;

    /**
     * 缴费单号id
     */
    private String receiptId;

    /**
     * 缴费单号
     */
    private String receiptNo;

    /**
     * 缴费总金额
     */
    private BigDecimal totalAmount;

    /**
     * 缴费人
     */
    private String userName;

    /**
     * 缴费的方式是线上线下
     */
    private String receiptTypeInfo;

    /**
     * 缴费的方式支付宝、微信、线下等
     */
    private String payTypeInfo;

    //缴费的名目 是那个类型的缴费名字要写出2024-2-19 10:31:18新增：是缴了什么费，要求一眼看出。
    private String paymentName;

    public String getPaymentName() {
        return paymentName;
    }

    public void setPaymentName(String paymentName) {
        this.paymentName = paymentName;
    }

    public String getDealId() {
        return dealId;
    }

    public void setDealId(String dealId) {
        this.dealId = dealId;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getReceiptId() {
        return receiptId;
    }

    public void setReceiptId(String receiptId) {
        this.receiptId = receiptId;
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getReceiptTypeInfo() {
        return receiptTypeInfo;
    }

    public void setReceiptTypeInfo(String receiptTypeInfo) {
        this.receiptTypeInfo = receiptTypeInfo;
    }

    public String getPayTypeInfo() {
        return payTypeInfo;
    }

    public void setPayTypeInfo(String payTypeInfo) {
        this.payTypeInfo = payTypeInfo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.dealId);
        dest.writeString(this.payTime);
        dest.writeString(this.payType);
        dest.writeString(this.receiptId);
        dest.writeString(this.receiptNo);
        dest.writeSerializable(this.totalAmount);
        dest.writeString(this.userName);
        dest.writeString(this.receiptTypeInfo);
        dest.writeString(this.payTypeInfo);
    }

    public PaymentNotesBean() {
    }

    protected PaymentNotesBean(Parcel in) {
        this.dealId = in.readString();
        this.payTime = in.readString();
        this.payType = in.readString();
        this.receiptId = in.readString();
        this.receiptNo = in.readString();
        this.totalAmount = (BigDecimal) in.readSerializable();
        this.userName = in.readString();
        this.receiptTypeInfo = in.readString();
        this.payTypeInfo = in.readString();
    }

    public static final Creator<PaymentNotesBean> CREATOR = new Creator<PaymentNotesBean>() {
        @Override
        public PaymentNotesBean createFromParcel(Parcel source) {
            return new PaymentNotesBean(source);
        }

        @Override
        public PaymentNotesBean[] newArray(int size) {
            return new PaymentNotesBean[size];
        }
    };
}
